Updates example code to match slides.