upload the R-file with solution for Assignment 2