Extending the Textbook Dynamic AD-AS Framework with Flexible Inflation Expectations, Optimal Policy Response to Demand Changes, and the Zero-Bound on the Nominal Interest Rate