 Scholars such as Nizamuddin Auliya and Moinuddin Chishti became prominent educators and established Islamic monasteries.Students from Bukhara and Afghanistan visited India to study humanities and science.Islamic institution of education in India included traditional "madrassas" and "maktabs" which taught grammar, philosophy, mathematics, and law influenced by the Greek traditions inherited by Persia and the Middle East before Islam spread from these regions into India.