Partial implementation with MapPairs error