Backtrack pass generator for school