hw4, step 5: thermometer