example for chapter 8