Solution for question 10