A researcher divided subjects into two groups according to gender and then selected members from each group for her sample. What sampling method was the researcher using?