We did talk about both things, but here the main concern was just to return an answer that would be a list. Turned out to be much simpler than anticipated. Remembered that bit of code as more spaghetti than that.
Doing the ranking would be nice, but a bit utopian at the moment.