finished demo_app1