Which of the following devices demonstrates the application of an electromagnet?