public bool Add(IAssignment assignment) { if (Assignments.Contains(assignment)) { return(false); } else { Assignments.Add(assignment); return(true); } }