added Lightswitch Pattern