public void Add(string str,int aT,int bT,int priority) { process nw = new process(str, aT, bT, priority); if (isEmpty()){ head = nw; } else{ process tmp=head; head = nw; head.set_next(tmp); } }