Buddhism and Jainism are two Indian religions that developed in Magadha (Bihar) and continue to thrive in the modern age. Gautama Buddha and Mahavira are generally accepted as contemporaries. Jainism and Buddhism share many features, terminology and ethical principles, but emphasize them differently. Both are śramaṇa ascetic traditions that believe it is possible to attain liberation from the cycle of rebirths and deaths (samsara) through spiritual and ethical disciplines. They differ in some core doctrines such as those on asceticism, Middle Way versus Anekantavada, and self versus not-self (jiva, atta, anatta). Jainism is an ancient religion whose own historiography centres on its 24 guides or Tirthankaras. Of the 24, the last two tirthankaras – are generally accepted as historical persons, with the 23rd Tirthankara pre-dating the Buddha and the Mahavira by probably some 250 years. Buddhists believe Gautama Buddha, the historical buddha, rediscovered the long forgotten dharma around the 5th century BCE, and began to teach it again. In Buddhism there were previous buddhas, too, 24 in total as described in the Buddhavamsa, the 14th book of the Khuddaka Nikāya. Buddhists also believe that Gautama Buddha had many previous rebirths as described in the Jataka Tales. Buddhist scriptures record that during Prince Siddhartha's ascetic life (before attaining enlightenment) he undertook many fasts, penances and austerities, the descriptions of which are elsewhere found only in the Jain tradition. In the Majjhima Nikaya, the Buddha shares his experience: Thus far, Sāriputta, did I go in my penance? I went without clothes. I licked the food from my hands. I took no food that was brought or meant especially for me. I accepted no invitation to a meal. The Jain text of Kalpasutra confirms Mahavira's asceticism, whose life is a source of guidance on many of the ascetic practices in Jainism. Such asceticism has been a hallmark of mendicant life in Jainism. The Buddha tried it, but abandoned what he called the "extreme ascetic methods", teaching the Middle Way instead.