Alberto's material: map&reduce definition and testing