Lesson 5: Queue improvements