HW 5 solutions.pdf