how to use dicts and tuples