tzselect: improved example for 'input/output through one function'