Changed it to a more OO approach, including implementing a very early version of my open source graphing solution.