initial framwork for mapreduce