added example map and reducer