updated with more scala and spark examples