Finished chapter 5 exercises.