hw4 part2 complete