take a look at this progression of d3 methods of selection and binding data