Coursera HW2 part1