Section 6.6 of the atoms-first version of
An Introduction to Chemistry
by Mark Bishop
Molar Mass and Chemical Compounds