Why is the wire in the electro magnet is coiled?