hw4 part1 complete.