add Comparator example