Map reduce ex2 code added