public Task getTaskFromTaskSet(int id, TaskSet tasks) {
		for(int i = 0; i < tasks.size(); i++) {
			Task currentTask = (Task) tasks.toArray()[i];
			if (currentTask.id == id) {
				return currentTask;
			}
		}
		return null;
	}