Assignment1 for coursera