How to Optimize Revenues Using Dynamic Pricing?