Simple calculator in Scala