Write a story about a scientist who invents a time machine but accidentally gets stuck in a different era