Adding base classes and example