For example, grass in a forest clearing produces its own food through photosynthesis. A rabbit eats the grass. A fox eats the rabbit. When the fox dies, decomposers such as worms and mushrooms break down its body, returning it to the soil where it provides nutrients for plants like grass.