Adds example codes from lecture