Making FileSegment a case class