Master R Script for Homework #6.