hw 6 solution.pdf