Haunting is used as a plot device in gothic fiction and horror fiction, as well as modern paranormal fiction. Legends about haunted houses have long appeared in literature. In particular, the "Arabian Nights" tale of "Ali the Cairene and the Haunted House in Baghdad" revolves around a house haunted by jinn. The "Nights" is almost certainly the earliest surviving literature that mentions ghouls, and many of the stories in that collection involve or reference ghouls. A prime example is the story "The History of Gherib and His Brother Agib" (from "Nights" vol. 6), in which Gherib, an outcast prince, fights off a family of ravenous Ghouls and then enslaves them and converts them to Islam.