The State Pattern

The State Pattern