changed String Calc to be object oriented