Potential energy of molecules