First attempt for Assignment 2

- No compiling error
First attempt for R Prog course project