Completed assigment 2 of the R programming course.