I really shouldn't but changing this to a class for a demo on php 5.3--forgive me