Every discourse has a purpose: explaining a concept, narrating an event, critiquing an idea and so on.
each sentence in the article has a communicative goal and the sequence of goals helps the author achieve the discourse purpose.