Which of the following materials is needed to create an electromagnet? Select all that apply. Multiple answers are correct.

A. Iron nail

B. Metal wire

C. Battery

D. Permanent magnet