Working code

This code performs is function, but creates in now way a pleasing html
document.