Step-by-step explanation:
The machine is plugged into an electrical source,which gets plugged the motor's wheel spinning.The machine is then unplugged and the wheel keeps spinning under its own interia. Then electrical energy is extracted from the spinning wheel.
I hope it's helpful!