How does a proteins structure relate to its function?