AverageComparator Class