adding array_to_html to BaseClass