This is the demo_app in Chapter 2