If a flat worm's head is cut off, it regrows its head and brain. Not only that, the new brain also contains all the memories of the old brain.