An Economic Theory of Technological Change