Plants as bioreactors