In the applet below you see a simple switch. Click the second rod from the top (this is the control rod) and then click on the third rod from the top (this is the test rod). Depending on the position of the middle stick the upper rod (indicator rod) will move or not. You will notice that this device is very simple. But a huge combination of such things can do calculations!