initial graphing functionality, finished!