Lecture 2 - Newtonian and Friedmann-Robertson-Walker cosmology