Use the code in the book for a queue implemented with a circular array as a starting point.