homework 8 solution