Week 2 assignment solutions