Which of the following describes the energy transformation that takes place in a flashlight?