added u3 and solved task for FIFO queue