for coursera assigment...