a machine with a ball and a ball