added simple d3 code