HW #2 solutions