StateManager Class