chapter 2, some exercises