queue supports Input() and Output() methods