finished chapter two of demo_app