On the dynamics of an endogenous growth model with learning by doing