a select() example