testando map and reduce