adding template for mapreduce.