Added stuff from lecture 10