Adding the app code