public int addReservation(int numberOfPeople, Date appointmentTime,
			int numberOfSlots) {
		int tableId = -1;

		int slot = getSlot(appointmentTime);
		for (Integer tableSize : tableMap.keySet()) {
			if (tableSize < numberOfPeople)
				continue;

			List<Table> tables = tableMap.get(tableSize);
			for (Table t : tables) {
				Boolean slotFound = true;
				for (int i = 0; i < numberOfSlots; ++i) {
					if (t.reservations.get(slot + i) == false) {
						slotFound = false;
						break;
					}
				}
				if (slotFound) {
					for (int i = 0; i < numberOfSlots; ++i) {
						t.reservations.set(slot + i, false);
					}
					tableId = t.id;
					break;
				}
			}
		}

		return tableId;
	}