hw2 part 2

hw2 part2 complete program