The sacred books of Jainism are called Agamas. The Jaina Agamas or scriptures are the works of the immediate disciples of Mahavira. The first sacred books of the Jaina are in Prakrit or Ardha Magadhi language. They were given their written form in the 5th century at Vallabhi, in Gujarat. Dr. L.M. Joshi is of the opinion that the literature of Jainism is vast and varied. Its subject matter includes not only ascetic culture, morality, religion and philosophy, but also fables fairy-tales, legendary romances, history, hagiography, mythology and cosmology. "The body of literature known as Agamas includes a large number of texts. These are divided into two classes" Anga Agamas or the original twelve books and Angabahya Agamas or the texts outside of the original twelve books.