extract sample