tried to implement graph. added comments to graph on what to fix