begining to add d3 code