Nominal Rigidities and the Dynamic Effects of a Shock to Monetary Policy