node number version of queue(), flushQueue() function added

example 2 now working