added spark example issue #41. fixed issue #38.
added spark example issue #41. fixed issue #38.
added spark example issue #41. fixed issue #38.