You could also do `ansSet.maxBy(_.confidence)` (instead of this for loop).