Queue OOP exercise