@Override
	public void buy(Command cmd)
	{
		cmd.execute();
		if(Storage.getInstance().getRevenue() < 10000.0)
		{
			restaurant.setState(restaurant.getBadstate());
		}else if(Storage.getInstance().getRevenue() >= 10000.0 && Storage.getInstance().getRevenue() < 20000.0)
		{
			restaurant.setState(restaurant.getNormalstate());
		}
		else
		{
			restaurant.setState(restaurant.getGoodstate());
		}
	}