and in the second quarter of that year , the quarter which ended in late january of 1977 , he won the american legion patriotic essay contest this contest was open to all city high school students who were taking american history courses .