updated d3 example