Turn Comparer into a class