added comparator class and color console