Basic design stage 2
All classes created with class hierarchy.
Fixed a.exec bug in main.