create HtmlGenerator class