This is the client code on the Spark Core