Week 3 solutions