my own practice on d3.js lib