Complete homework 8