HOW A PERMANENT MAGNET GENERATOR WORKS