minor revisions to lecture2_exercises.R