Added ability to draw linear/quadratic functions.