During the Vedic period in India, education took place primarily in the home or through the gurukula system where students lived with their teacher. The goal of education was to instill piety, righteousness, character development and cultural preservation. Education was open to all castes and sexes, with girls receiving instruction at home in topics like music and dance. Formal schooling began after an upanayana ceremony around ages 8-12, with an emphasis on religious texts but also practical topics through apprenticeships depending on one's caste. Instruction was verbal through lecture and discussion, with the guru serving as the primary educator and role model.