example method of doing week 5 homework