Input (grade 7): It was written by Thucydides, an Athenian general who served in the war.
Output (grade 7): It was written by Thucydides, an Athenian general who served in that war.