public InterestRate(Double rate) {

        if (rate < MAX_INTEREST_RATE && rate > MIN_INTEREST_RATE){
            rateOfInterest = rate;
        } else {
            throw new IllegalArgumentException("Rate is out of expected bounds of "
                                                + MIN_INTEREST_RATE + " To " + MAX_INTEREST_RATE);
        }
    }