Week 3 example recreated