Week 6 code examples