make Request a case class.