educational queueing logic