Answers to week2 homework questions