implemented graphing from the current program