add single and double compound pendulum