Wrote mapper function and example interface