Added the map function
added map function