Made basic graphing work