Spark Library in Scala