Replaced queue_demo implementation with an object oriented implementation