R Programming Course -- Problem Assignment 2