simualtion(a queue application) code in chapter8