hw2 solutions and test suite