magnet and coil