hw2 part 1 iteration 3