Adding app code