 The most promising of the latter were sent to the school located in the grounds of the imperial Topkapı Palace, where they studied law, linguistics, religion, music, art, and fighting, as well as performing functions as palace staff.In parallel with the male segment of the school, the women of the imperial harem were also given an education.The girls of the palace school were taught the principles of Islam, as well as practical skills such as sewing, embroidering, dancing, singing, music, story-telling, and basic literacy.