week2 assignment 1 & 2