Adding Spark Code