start refactoring map method to use keyword arguments
refactored map to keyword arguments