Structure of the application and flow