"Chemical pendulum" experiment: how it works