Using case class for Html instead of object allocation