team apple mapper and reducer