trying to implement using Comparator, makes most sense so far
initial attempt complete
submitted and system tested problem successfully