simple exercises with Map Reduce