Code for Project Flashlight