following along and expanding with Mike Bostock's d3 tutorial http://bost.ocks.org/mike/bar/