a few exercises from chapter 10