passing tests for assignment 2