Innovation and Imitation at Various Stages of Development: A Model with Capital