Add code in Scala.