Added solution of question 7