added basic graphing