Finish Programming Assignment 3 in R Programming.