forked from: Swing of the pendulum

