An introduction to state management analogy