Extending API: Map reduce Example