hw 2 solution.pdf