Scientists have solved a century-old mystery about how Stentor, a single-celled organism with no brain or nerve cells, exhibits learning-like behavior.