Completed homework for week 3