hw2 part2 completed