Extending Calculator class

Extending Branch, EvalFormula, FormulaElement below Calculator class.
Also moving main back to own class.