refactoring with josh to create queue object in cli