Bacteria on a leaf or fungi on a log...
How do they eat?
What must they be able to do?
...release something (an enzyme) to break down (digest) leaf molecules
...grab smaller molecules produced by digestion, move them inside
...re-configure those molecules to make bacterial cell parts