sample_app from tutorial book