Create the main entities.