Week 3 code examples (updated)