added Scala code sample