Added solution to question 9