class Box implements Weighable { private int length; private int width; private int height; private double massInKgs; private static final double KG_PER_LB = 2.2; public Box (int length, int width, int height, double massInKgs) { this.length = length; this.width = width; this.height = height; this.massInKgs = massInKgs; } public void addToBox (int massInKgs) { this.massInKgs += massInKgs; } public String toString() { return "" + width + " x " + length + " x " + height + " " + massInKgs + " kgs"; } public boolean equals (Object o) { Box b = (Box) o; if (this.width != b.width) return false; if (this.height != b.height) return false; if (this.length != b.length) return false; if (this.massInKgs != b.massInKgs) return false; return true; } public double getMassInKgs() { return massInKgs; } public double getWeightInLbs() { return KG_PER_LB * massInKgs; } }