Scala program that links to Spark