updated with spark rdd blog