This is an entire circuit of an electric torch.While charging make sure that the voltage does not exceed 1.5 v otherwise open the switch so that the torch started functioning and once it becomes empty recharge again by closing the switch.
This is one of the examples of the uses of a capacitor.
For greater values of rated voltage of the lamp,you may increase the app's clock in order to charge and discharge faster.