Added the initial d3 code.