Complete hw8

hw8 finished.