Power of an electric heater is 1000 W and it is running for 1 hour. Calculate the energy consumed by it