added graphing capability