finished homework8 for math