public double getRate(String currencyCode) {
		double val = 0;
		for (Object rate : this.rates) {
			JSONObject obj = (JSONObject) rate;
			if (obj.get("code").equals(currencyCode)) {
				val = (Double) obj.get("rate");
			}
		}
		return val;
	}