started to implement the queue. modified shell.c