added State class
starting transition to State class