For Coursera Course R_programming Assignment