This is my completed Assignment2 for Coursera's R class