completed week 3 homework exercise and questions