Create MagnetElement.java