Give the option to pass a class into the options object (avgGroupClass) in order to calculate the average of this group