setting up sketch examples
operate on the sorted dict keys so that the traversal happens in an expected order.
all of the history use is matching, use a set for this it is faster.