Moved base classes to their own folder.