Dynamic Pricing of Electricity in the Retail Markets