update Queue class