Structure and function of molecules