Programming assignment 2

PA 2 for the R programming course