Split classes in the main into separate files.