Evolution of genes and proteins