Homework 2 complete

Now all tests for homework 2 are being passed successfully.