Added base classes with basic functionality.