demo for chapter 6