public void setFloors(int value) {
        if (value <= 0) {
            throw  new IllegalArgumentException(
                    "Illegal number of floors, must be positive");
        } else {
            floors = value;
            weight = calculateTotalWeight();
        }
    }