Added StateObject class