playing around with _.reduce