adding the app code