Please write a story about a scientist who accidentally invents a time machine while working on a teleportation device