working on week3 homework