a few examples of using d3