Concepts of polymer thermodynamics