Completed chp8 exercises.