Completed week7 assignment