Week 3 programming assignment