week 4 homework - both parts