Price Dynamics Based on the Adjustment of Firms