Added solution to question 6