case class problem