Changed Wr from case class to trait.