Flexible and Rigid Regions in Proteins