Core structure of the app