Example for Scala