A physic simulation of a pendulum that changes decreases in mass with time