Finished exercises chapter 3