Getting base classes out of the main program.