hw 4 solution.pdf