a calculator that takes written statements and returns the result