Refactored Base as a case class.