sample_app chapter_5