Added map() method to $M impl