Adds the main classes.