commit sample codes from d3 book.