Aggregate demand and inflation