finished exercises chapter 3