commit 6 : dequeue function working with tests