This is the solution to the Assignment2 of the R Programming coursera course