How Can Magnets Generate Electricity