Added base classes.
Implemented simple logic.