Add sample code about select()