added a few graphing functions.