Scala dojo code