Lecture 6 Moment-generating functions