In addition to spreading religion, the Mosques taught people