sentence1: It has been used over the centuries as a courthouse, a school, and a village shop, and now houses a small museum.
sentence2: Over the course of the centuries, it has served as a village shop, a school and a courthouse.