writing base classes

cc