history research essay structure deep learning ai homework