Add Spark example code

Change-Id: Iea8110bbe0a7bb77c89c733579290c45e386b982