Skeleton code for time-range test (section 9.9)