Theory of Heat