How to make an electromagnet
1. Wrap wire into a coil (solenoid)
2. Magnetic field lines line up inside the solenoid
3. Magnetic field inside the solenoid is strong and uniform
4. Magnetic field outside the solenoid is like a bar magnet
5. Adding an iron core increases the field strength