The story of Frankenstein came out of a ghost story competition, when Mary Shelley was just 18 years old.