Answer of R programming assignment 2

First commit of the R programming assignment 2