Write a story about a time-traveling detective who solves crimes in different time periods