sample of input using select()