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