Sorry, I don't understand what this code is doing. Is this code selecting samples? ? 