added d3 dependency and graph class