First submit to Assignment 2 of R Programming