This index.php shows the implementation of the class.  It is a bit verbose at the moment.