Added solution to question 4