working-of-two-way-switches