In this lesson we begin updating our flashlight script. This is in order for the script to work with our inventory and to improve optimisation.