A coil of insulated copper wire is wound around a piece of soft iron and current is passed in the coil from a battery. What name is given to the device so obtained ? Give one use of the device mentioned by you.