changed Diamond.js to inherit from Box.js