add examples from spark programming guide
add examples from spark programming guide