a machine with gears and a clock