add example for chapter 5