Phase Transitions in Polymeric and Protein Systems