State class definition