Initial d3 code