added visual aspect to pendulum