Solving question 6