Assignment 1 for coursera