It was originally published in a series of stories in a magazine, then published in book form in 1899.