sentence1: The tower house , expanded in the 9th and 10th centuries , was built in the Middle Ages into a castle .
sentence2: The tower house , built in the 9th and 10th centuries , was expanded into a castle in the Middle Ages .