The sample_app source codes.