added d3 basic functionality