solution to the eighth homework from spring 2013 660853