Another addition to html_render.py which is a solution for the fourth part of the assignment.