First working version of the comparator...

Not there yet