Added Scala snippet