mattjasb assignment 2 submission

Programming Assignment 2 edited R file.