Assignment 2 submission for R programming