added avg method to group_by