testing examples from chapter 10