finished question 1 on homework 5