a model of a swing