hw 10 solution