Added base class for State and StateManager