public void addPrice(QueryPrice price) {
		
		if (price == null) {
			System.out.println("ERROR: The price given to the query was null");
			return;
		}
		
		boolean greaterThan = price.isGreaterThan();
		Integer priceValue = price.getPrice();
		
		if (priceValue == null) {
			System.out.println("ERROR: The Integer value of the price given to the query was null");
			return;
		}
		
		if (greaterThan) {
			
			if (this.prices[0] == null) {
				this.prices[0] = price;
				return;
			}
			
			Integer lowerPrice = this.prices[0].getPrice();
			
			if (lowerPrice == null) {
				System.out.println("ERROR: Lower price was null");
				return;
			}
			
			if (lowerPrice.intValue() < priceValue.intValue()) {
				this.prices[0] = price;
			}
		} else {
			if (this.prices[1] == null) {
				this.prices[1] = price;
				return;
			}
			
			Integer upperPrice = this.prices[1].getPrice();
			
			if (upperPrice == null) {
				System.out.println("ERROR: Upper price was null");
				return;
			}
			
			if (upperPrice.intValue() > priceValue.intValue()) {
				this.prices[1] = price;
			}
		}
	}