During the editing stage. Then Peter knows what he wants to talk about in his essay. The thesis statement is where the writer states what they will be talking about in the paper. The thesis statement goes in the introduction and is usually the second sentence.