Fun with sets and dictionaries