finished question 1 of the homework