Implement state machine, Python iterator protocol, and visitor pattern.
This lesson requires an active subscription.