Creation of main classes