Changed FileTypes from case object to case class