A simple functional calculator.