hw1 up to problem 9 of 11. Pass all tests.
finish problems 1-11 for hw1.