sentences:  In 1374, Leonor exchanged Vila Viçosa for Vila Real de Trás-os-Montes and in 1376 she bought Pinhel.In early February 1373, during the brief siege that the Castilian troops imposed on the city in the second Fernandine War, Leonor gave birth in Coimbra to her first child with the king, a daughter called Beatrice.Three years later, in 1376, Beatrice was affirmed as heiress to the throne in the Cortes of Leiria.