Week 4 code examples