demo app for chapter 2