A student investigates the temperature change when citric acid reacts with sodium hydrogencarbonate in an insulated cup. The apparatus used is shown in Figure 1.

Give the letter of the piece of apparatus (W, X, Y or Z) in Figure 1 that is used to measure the temperature.