ex 19.3b,  global queue done as linked list