Adding state class.