Added "map" function.