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