Submission for assignment 2 for Intro to R Programming