Created State and StateManager class templates