Calc class, define map were added

Exit command was added; Calc class was added; refactoring
redesign
calc class was added
commit