demo for chapter 2.