Simple functional calculator written in Scala.