Finished ch8 exercises