@Override
	public Formula generateOffer (Formula offer, int snum) {
		Formula responseOffer = getPreferedOffer(offer, snum);	
		if (responseOffer != null) {
			addHistoryFormula(responseOffer);
		}		
		if (offer != null && offer.equals(responseOffer) && offer.getPrice() >= responseOffer.getThreshold())
			responseOffer.setAccepted(true);
		return responseOffer;
	}