Exercise 4.2: light switch

before
after