added code for creating the graph