Updates for R programming course assignment 2

These are my submissions for the R programming assignment #2