Pathology

A 20-year-old woman has an ovarian tumor removed. The surgical specimen is 10 cm in diameter and cystic. The cystic cavity is found to contain black hair and sebaceous material. Histologic examination of the cyst wall reveals a variety of benign differentiated tissues, including skin, cailage, brain, and mucinous glandular epithelium. What is the diagnosis?