Adding example for reduce