Oops, forgot to add RDD.scala earlier - here it is