A Stochastic Equilibrium Economy with Optimal Capacity Expansion: the classical control case