We Need An Electromagnet

We can't reverse the poles on simple bar magnets, but we can on electromagnets. We can make one by wrapping a wire several times around an iron core to form a coil. This magnet will also have a N and a S pole when connected to electrical current. The big difference is that the poles can be changed instantly by reversing the current in the wire.