Factors affecting the Development of Written Laws