Which of the following would be a best choice as a core for an electromagnet?

A. Plastic straw
B. Copper wire
C. Iron nail