Added State Manager class