algorithm
 
Magnets