sample_app from book