end of exercises chapter 5