Input (grade 6): Under the Jagiellon dynasty Poland forged a union with its neighbor, the Grand Duchy of Lithuania.
Output (grade 7): Under the Jagiellon dynasty, Poland made an alliance with its neighbor Lithuania.