public void setWidth(double value) {
        if (value <= 0) {
            throw new IllegalArgumentException(
                    "Illegal width, must be positive");
        } else {
            width = value;
            weight = calculateTotalWeight();
        }
    }