Sample_app func done