Factors influencing the development of written laws