Ab Initio Valence Calculations in Chemistry