A dynamic equilibrium model of inflation and unemployment