heres how it works
 
Magnets