declared all variables as final, added a helper method to print temperature difference