Atoms and information theory: An introduction to statistical mechanics