wrapped up basic calculator functionality