Just building electromagnets like it is no big deal:
Mrs. Pirlot's class is the latest to build electromagnets. We used a 14 gauge stranded copper wire to create a solenoid around a steel nail. Using a 6V battery we were able to attract paperclips and change the direction of a compass!