a machine with a spring