adding the graph class that I'm working on