Explain how a leaf is like a factory.