worked on the map function

the map function will now read the input and generate key value pair
after looking up in the lookup table