Is the electromagnet a battery or a power source