graphing capability addded