week 3 homework for Nathan