@Override
	public void update(Observable obs, Object arg) {
		/*If the observable is a TimeManager, check if the bid is ended and change bidState 
		 * and notify users*/
		if(obs instanceof TimeManager)
		{
			TimeManager timeManager = (TimeManager)obs;
			for (Bid bid : listBid)
			{
				if(timeManager.getSystemTime().after(bid.getEndDate()))
				{
					for (Offer offer : listOffer)
					{
						if(offer.getBid().equals(bid) && Double.compare(offer.getPrice(), bid.getPrice()) == 0 ? true : false)
						{
							bid.setBidState(BidState.END);
							System.out.println("Bid on prodcut : " + bid.getProduct().getDescription() + " is terminated, Final price : " + bid.getPrice() + " Buyer : " + offer.getBuyer().getFirstName());
						}
					}
				}
			}
		}
	}