week 2 homework solutions including extra credit