completed changes for week3 homework