Write a story about a group of friends who discover a time-traveling device and decide to explore different periods in history together