Combining sketches

I want the light to be illuminated when and only when the button is depressed. when let go, the light should turn off. this is not working right now with the current schematic and code.