hw4 problem1 is complete