Dynamic Pricing and Inventory Management: Theory and Applications