Time for action – defining a Map function for an index