Used DI pattern to the List class, so that I can compile any kind of HTML.