homework complete
update SynchronizedQueue.java