The picture to the left shows a device made of a battery, a nail, and a long piece of copper wire. It converts electrical energy into a different form of energy. 

What is the name of the object in the picture?
       
       
electromagnet 
electric switch
electric motor
electric generator