Comparison between the role of Caim and Ibn Khaldun in sociology