added Spark sample code.