Queue class exercise