Added solution to question 3