an example class diagram using d3.js