demo_app from book