Added code examples from Lecture 4