hw 5 solution.pdf