iteration 5, using the select method