shouted max , having some imagery of a late-20th century movie he had frequently watched as a child pop into his head - the story about two teenaged friends who were provided with a time machine , and assigned with the simple task of researching history so that they could pass their final exam and not be separated into different schools .