Complete hw2 part 3