hw2 part 1 iteration 2