hw 9 solution and hw 10