Working Spark Code.c