Add solution to question 4 in chapter 1.