Dynamic Allocation and Pricing (A Mechanism Design Approach)