Add utility method 'map'.