Proteins perform vital functions of life, they digest food and fight infections and cancer. They are in fact nano-machines, each one of them designed to perform a specific task. But how did they evolve to match those needs, how did the genes encode the structure and function of proteins?