From prediction of structure to design of function