a machine with a few doors