A survey was mailed to a total of 400 students; 100 were randomly selected from each of the freshman, sophomore, junior and senior classes last semester. What sampling method was used?
A. Systematic sample
B. Stratified sample
C. Simple random sample
D. Cluster sample