final sample_app