Completed R programming quiz 4.