Statistical Mechanics of Macromolecules