added main structure of the application