What is the best definition of the caste system?

A. a method of meditation used to transcend dependence on the body


B. the separation of people into religious and social groups based on their birth


C. the Buddhist belief that a person goes through a cycle of birth, death, and rebirth until reaching perfection


D. a series of old Hindu texts written to sing the praises of the Aryans' gods