Completed exercise. No clue how 'Three of a Kind' works, but it works