created state class