started implmenting the mapreduce code