Processing data using MapFn