solution to question 2, chapter 1