almost finished question 3