Foreshadowing is when an author uses symbolism, an event, a small detail, or even a part of dialogue to be a warning or indication of a future event. An author might use this because they want to give the reader knowledge about a future event or to tease them.
This sentence starts off with the word "Lastly" this is a key word into identifying which part of the sentence belongs in the text. (hoped this helped)