Structure-function relationship in proteins