Attempt at question 8