Modified queueToString() to build the output into an array too, and added the getArray() method that will return the array that was built in queueToString()