public ArithmeticQuantity(double value, Unit unit) {
        super(value, unit);
        if(!Distance.class.isInstance(unit) && !Volume.class.isInstance(unit)) {
            throw new RuntimeException("Cannot create ArithmeticQuantity with unit " + unit);
        }
    }