Wrap map reduce results in class