Simple approach to map-reduce