Scala example