Historically, Madrasas developed out of occasional lectures delivered at mosques. These lectures eventually evolved into more formalized classes. Structures known as Khan lodgings were added to mosques for students who traveled to participate in these classes. Over time, princes and wealthy families donated funds to construct buildings and provide stipends to students and lecturers, transforming these learning centers into permanent institutions. Today, the specific organization of classes can vary depending on the Madrasa, but traditionally, instruction took place in a courtyard and primarily consisted of memorizing textbooks and the instructor’s lectures.