Write a story about a scientist who accidentally invents a time machine and uses it to change the course of history