Added basic-operations version in Scala.