Edited the second code chunk in section 6.3.2 so that pivoted variable names match Figures 6.3, 6.4, and 6.5 for clarity.