finalizing exercises chapter 10