Adds queue class, and methods