Electronic structure of molecules