How to wire 2 way and intermediate switching