first sketch, addNode function adds a node and draws the new graph above the old one