Circuit:
Switch Function: