solution to week 2 day 4 homework