Task 4. ireduce