added State class to objects