hw 2 part 3 working