Translate the entry point to Scala.