Write a story about a scientist who creates a time machine, but accidentally travels to a dystopian future where humanity is on the brink of extinction