For Assignment 1 in Coursera Class