Liberalization of the market and elaboration of the insurance code