Create Magnets.cpp