A coil is used to produce a magnetic field