Attempt to solve question 3