create state class