finished chapter 2 exercises