added source code for app on phone