Created HtmlGenerator to handle actual work