Function Of A Permanent Magnet