Printed versions date back to the 1840s , but the story itself is thought to be much older .
Printed versions of the story date back to the 1840s .