Plants are better learners than you might think