Add map method to the Object constructor