hw 3 solution.pdf