finish hw4 part 1