the first version of the R Programming Assignment 2