(JGM) Week 3 sprint stuff:  general comparator method