initiate R scripts that used in Coursera Course