The market came with the dawn of civilization and it is not an invention of capitalism. If it leads to improving the well-being of the people there is no contradiction with socialism.