R Programming Assignment 2

Ed.3, add comment.