1. How energy is transformed in a generator?