public Event createEvent(String identifier, ArrayList<Restriction> restrictions, ArrayList<Result> results) {
           //We need to create the new Event with the parameters given
        	Event newEvent = new Event(identifier, restrictions, results);
        	//Check to see the identifier is unique
        	for(Event e: events){
        		if(e.getIdentifier().equals(identifier))
        			throw new IllegalArgumentException("There's already an event with that identifier. Identifiers need to be unique.");
        		}
           //Then we add that Event to our list
        	events.add(newEvent);

            if(restrictions != null )              
            for(Restriction r: restrictions){
                boolean check = true;
                for(Restriction r_in: this.restrictions){
                    if(r_in.getIdentifier().equals(r.getIdentifier()))
                        check = false;
                }
                //We add it normally
                if (check)
                    this.restrictions.add(r);
            }

            return newEvent;
        }