How to Make an Electromagnet