just about have the graph class done