How does a block machine work?