queue class compiles cleanly