Modelling a Variable Mass Pendulum System