Added solution of question 9