Learning, Prices, and Firm Dynamics