R Programming Course Assignment 3