Kinetic theory of gases, with an introduction to statistical mechanics