Added first draft for comparator