Adding case class learning