initial app code: