added State case class
state case class