Optimal monetary policy with staggered wage and price contracts q