General structure of application