Scala code samples.