added graphing functions :)