Plant factory: mitigating the effect of global warming on bean production