Added solution to question 7 in chapter 1