Code used for our light switch project