Which item rotates in a magnetic field as an electric motor produces kinetic energy.

A. Lightbulb

B. Loop of wire

C. Battery

D. Permanent magnet