How are amount of heat transfered and the change of temperature related