added code examples from lecture 03/22/13