assignment 2 all tests passed