The ruling Front for the Liberation of Mozambique ( Frelimo ) party formally abandoned Marxism in 1989 , and a new constitution the following year provided for multiparty elections and a free market economy .