A thermometer works because the liquid in it contracts when heated this is an example of