Collecting data to create a training sample