May wants to submit her R code

for assignment2 for R programming class.