to take a sample