Farming to mitigate the effects of climate change