Input (grade 6): Under the Jagiellon dynasty Poland forged a union with its neighbour, the Grand Duchy of Lithuania.
Output (grade 7): That event started a new dynasty in Polish throne: Jagiellon dynasty. Under the Jagiellon dynasty, Poland made an alliance with its neighbor Lithuania.