Write a story about a young scientist who accidentally creates a time machine and embarks on a thrilling adventure through different time periods