Added example as described in pull request https://github.com/spark/examples/pull/1