Created a Graph class