Mostly functional simple calculator.