hw2, problem 1b works
hw2, 1c done.