Code for the flashlight app I'm making