Implemented the method to turn bulbs off and on