Reimplement print-queue in 3-21 and 3-22