public void createTask(	String id,
							String name,
							String date,
							String status,
							String required,
							String description,
							String attendants) throws JAXBException, IOException{
		
		//Probind that the data is comming correctly
		/*System.out.println( "Id: "+id+
							"Name: "+name+
							"date: "+date+
							"status: "+status+
							"required: "+required+
							"descriptino: "+description+
							"attendants: "+attendants);*/
		//trying to write into file
		FileInputStream stream = new FileInputStream("C:/Users/Efrin Gonzalez/Documents/task-manager-xml.xml");
		String path="C:/Users/Efrin Gonzalez/Documents/task-manager-xml.xml";
		
		//First Let's try to get all the info from the file and the include the new info		
		JAXBContext jaxbContext = JAXBContext.newInstance(Cal.class);
		// Deserialize university xml into java objects.
	     Cal cal = (Cal) jaxbContext.createUnmarshaller().unmarshal(stream);

		// Let's create the new task to be written in the file. 
		Task task = new Task();		
		task.id = id;
		task.name = name;
		task.date = date;
		task.status = status;
		task.required = required;
		task.description = description;
		task.attendants = attendants;
		
		//if the task does not existe, let's add it
		 //With the iterator we can full fill the list that will be sent in response
	     ListIterator<Task> listIterator = cal.tasks.listIterator(); 
	     //list to full fill with the requested id
	     //List<Task> tasksList = new ArrayList<Task>();
	     int existingTask=0;   //flag to see whether the element exist 
	     while (listIterator.hasNext()) {	   
	    	 Task taskList = listIterator.next();
	        	 if((taskList.id.equals(id))&&(taskList.name.equals(name)) ){
	        		 existingTask = 1;
	        		 System.out.println("The task id: "+ id +" name: "+name+" already exist. It is not allowed to create repeted tasks.");
	        	 }	        	
	         }    
		
		if (existingTask == 0){
			cal.tasks.add(task);					
			 // Serialize university object into xml.            
	        StringWriter writer = new StringWriter();

	        // We can use the same context object, as it knows how to 
	        //serialize or deserialize University class.
	        jaxbContext.createMarshaller().marshal(cal, writer);				       
	       SaveFile(writer.toString(), path);	       
	      System.out.println("The task id: "+ id +" name: "+name+" has been saved. ");
		}
	}