demo for chapter 4.