solution to question 1, chapter 1