Demand Response Application in Smart Grids