Here is a nifty diagram I found on a research paper that I thought make the visualization of the method easier to picture.