Finishin up with regression lines...
added an evalFunction that evaluates the y positions of the points used
to draw the curves.
made the code more modular