first template for map reduce