for coursera assignment....