First principles of chemistry