How does the electrical circuit in my flashlight work?