hw 2 part 3 - final