finished hw4 part1