Finished chapter 2 exercises.