HW 4 solutions.pdf