sample_app tutorial