Use polymorphism to resolve map() overloading