more exercises from chapter 2