moving from dictionaries and lists to sets