macor build case class