public double getPriceForQuantity( int quantity ) {
		double price = 0;
		for( Object object : orderList.toArray() ) {
			Order order = (Order)object;
			
			if( quantity > 0 ) {
				if(quantity >= order.getQuantity()) {
					price += order.getPrice();
					quantity -= order.getQuantity();
				} else if(quantity < order.getQuantity()) {
					price += quantity * (order.getPrice() / order.getQuantity());
					quantity = 0;
				}
			}
		}
		
		return price;
	}