Index type case class