Add code for w3d3