object State case class State(private val foo: Int) case class State2(private val foo: Int) object State2