Added solution to question 5