Laid out a plan for a more efficient mode() method.