After 399 BC Plato began to write extensively. It is still up for debate whether he was writing before Socrates' death, and the order in which he wrote his major texts is also uncertain. However, most scholars agree to divide Plato's major work into three distinct groups. The first of these is known as the Socratic Dialogues because of how close he stays within the text to Socrates' teachings. They were probably written during the years of his travels between 399 and 387 BC. One of the texts in this group called the Apology seems to have been written shortly after Socrates' death.