Creation of main class