Planning and Profits in Socialist Economies