the solution
 
Magnets