use of case class