Demo_app for chapter 2