Converted mod main class to Scala.
Because we do what we must because we can!