Changed DataObjectInst to a case class