Essays on Dynamic Pricing