How Iron Man Got The Inspiration For His Suit

Magnets man, how do they work?