Problem with
select()
Look at Figure 2 for how select is used.