Expanded lecture 3