created State class