Material from lecture 1-6.