2 classes for queue in module Q, but doesn't seem to be any more secure; I still needed attr_accessor to set next_node