section 3.8.2 fifo queue solution