passed all 7 tests from part 2.