added assignment2 for R Programming