instead of `seen_add(e)` change it to `seen.add(e)` can't really see why he had it that way :)