R Programming Course Homework