Added an example of the use of a comparator.