Solution to question 12